package org.jst4me.common;

public class StringUtil {
    public static boolean isNullOrEmpty(String string){
        if(string == null) {
            return true;
        } else if("".equals(string)){
            return true;
        } else {
            return  false;
        }
    }

    public  static  boolean isNullOrEmpty(String string, boolean trim){
         if(trim){
             return  string == null ? true : isNullOrEmpty(string.trim());
         } else{
             return  isNullOrEmpty(string);
         }
    }
}
